package com.museum.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("reservation")
public class Reservation {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Integer visitorCount;
    private String visitDate;     // 参观日期, 格式: yyyy-MM-dd
    private String visitTimeSlot; // 参观时间段
    private Integer status;       // 0-待审核，1-已确认，2-已取消
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 